using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LivesUIController : MonoBehaviour
{
    [SerializeField] private GameObject[] livesIcons;

    public void UpdateLives(int health)
    {
        for (int i = 0; i < 5; i++)
        {
            livesIcons[i].gameObject.SetActive(false);
        }
        for (int i = 0; i < health; i++)
        {
            livesIcons[i].gameObject.SetActive(true);
        }
    }
}
